package com.atguigu.reflect;

/**
 * Created by Smexy on 2024/4/1
 */
public class Demo11InstanceInit extends Demo12InstanceInitParent {

    private String demoName = "object demo name ~~~";

    {
        System.out.println("[实例初始化]非静态代码块");
    }

    public Demo11InstanceInit() {
        super();

        // <init>方法插入：实例变量赋值操作
        System.out.println("[实例初始化]" + demoName);

        // <init>方法插入：非静态代码块

        System.out.println("[实例初始化]构造器");
    }

    public static void main(String[] args) {
        new Demo11InstanceInit();
    }
}
